# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Andre Kugland <kugland@gmail.com>

pkgname=python-webrtcvad
pkgver=2.0.10
pkgrel=3
pkgdesc='Python interface to the Google WebRTC Voice Activity Detector'
arch=(loong64 x86_64)
url=https://github.com/wiseman/py-webrtcvad
license=(MIT)
depends=(
  glibc
  python
  python-setuptools
)
makedepends=(git)
_tag=bb429dac1a686807c69b916f03dd843fa10b0927
source=(git+https://github.com/wiseman/py-webrtcvad.git#tag=${_tag})
b2sums=(SKIP)

build() {
  cd py-webrtcvad
  python setup.py build
}

package() {
  cd py-webrtcvad
  python setup.py install --root="${pkgdir}" --optimize=1
  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-webrtcvad/
}

# vim: ts=2 sw=2 et:
